<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="Cache-Control" content="no-siteapp" />

    <title>TBOOX开源工程</title>
    <meta name="description" content="专注于跨平台c开发解决方案">

    
    <meta name="keywords" content="tbox,xmake,gbox,c,lua,跨平台,构建工具,编译工具,makefile,make,编译器,图形库,linux,编程,开发" /> 

    <!-- qq oauth -->
    <meta property="qc:admins" content="5211601217706727767255" />

    <!--icon -->
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="icon" sizes="192x192" href="/static/img/nice-highres.png" />
	<link rel="apple-touch-icon-precomposed" href="/static/img/apple-touch-icon-57x57-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/static/img/apple-touch-icon-72x72-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/static/img/apple-touch-icon-114x114-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/static/img/apple-touch-icon-144x144-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="180x180" href="/static/img/retinahd_icon.png" />
	<meta name="msapplication-TileImage" content="/static/img/retinahd_icon.png" />
	
    <link rel="stylesheet" href=" /css/fontawesome/css/font-awesome.min.css ">
    <link rel="stylesheet" href=" /css/main.css ">
    <link rel="canonical" href="https://tboox.org/cn/page13/">
    <link rel="alternate" type="application/rss+xml" title="TBOOX Open Source Project" href="https://tboox.org/feed.xml ">
    <link rel="alternate" hreflang="en" href="https://tboox.org/" />
    <link rel="alternate" hreflang="zh-Hans" href="https://tboox.org/cn/" />

    <!-- css -->
    <link href="/css/reward.css" rel="stylesheet" type="text/css"> 




    <script type="text/javascript">
    function isPC(){    
        var userAgentInfo = navigator.userAgent;  
        var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod");    
        var flag = true;    
        for (var v = 0; v < Agents.length; v++) {    
            if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = false; break; }    
        }    
        return flag;    
    }
    </script>

<!-- baidu ads -->



    <!-- baidu ads -->

</head>


  <body>

    <header id="top">
    <div class="wrapper">
        <a href="/cn" class="brand">TBOOX</a>
        <button id="headerMenu" class="menu"><i class="fa fa-bars"></i></button>
        <nav id="headerNav">
            <ul>
                <li>
                    
                    <a href="/?lang=0">
                    
                        <i class="fa fa-home"></i>English
                    </a>
                </li>

                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/project/">
                            
                        
                            <i class="fa fa-bookmark"></i>项目
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/archive/">
                            
                        
                            <i class="fa fa-archive"></i>归档
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/category/">
                            
                        
                            <i class="fa fa-th-list"></i>分类
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/tag/">
                            
                        
                            <i class="fa fa-tags"></i>标记
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/docs/">
                            
                        
                            <i class="fa fa-book"></i>文档
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="https://xmake.io/#/zh-cn/about/contact" target="_blank" >
                            
                        
                            <i class="fa fa-forumbee"></i>社区
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/donation/">
                            
                        
                            <i class="fa fa-heart"></i>捐助
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                    
                    <li>
                        
                            
                            <a href="/cn/about/">
                            
                        
                            <i class="fa fa-user"></i>关于
                        </a>
                    </li>
                    
                    
                
                    
                    
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                    
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            </ul>
        </nav>
    </div>
</header>



        <div class="page clearfix" index="">
    <div class="left">
        <h1>TBOOX开源工程</h1>
        <small>专注于跨平台c开发解决方案</small>
        <hr />

        <ul>
            
              <li>
                <h2>
                  <a class="post-link" href="/cn/2018/08/16/coroutine-iocp-some-issues/">记对协程增加IOCP支持时候踩过的一些坑</a>
                </h2>
                <div class="label">
                    <div class="label-card">
                        <i class="fa fa-calendar"></i>2018-08-16
                    </div>
                    <div class="label-card">
                        
                    </div>
                    <div class="label-card">
                        
                    </div>

                    <div class="label-card">
                    


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#tbox" title="Category: tbox" rel="category">tbox</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


                    </div>

                    <div class="label-card">
                    
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <a href="/cn/tag/#tbox" title="Tag: tbox" rel="tag">tbox</a>&nbsp;
    
        <a href="/cn/tag/#IOCP" title="Tag: IOCP" rel="tag">IOCP</a>&nbsp;
    
        <a href="/cn/tag/#协程" title="Tag: 协程" rel="tag">协程</a>&nbsp;
    
        <a href="/cn/tag/#坑点" title="Tag: 坑点" rel="tag">坑点</a>
    
  

</span>

                    </div>
                </div>
                <div class="excerpt">
                    <p>之前在对<a href="https://github.com/tboox/tbox">tbox</a>的协程库中增加了基于IOCP的io处理，期间踩了不少的坑，这边就做个简单记录吧，省的到时候忘记了，自己看不懂自己这个代码 (= =)</p>

<h2 id="坑点一">坑点一</h2>

<p>WSARecv/WSASend在lpNumberOfBytesRecv和overlap同时被设置的情况下，如果它们的io操作立即返回成功，并且lpNumberOfBytesRecv里面也已经获取到了实际的io处理字节数，但是io event还会被放到完成队列，需要调用GetQueuedCompletionStatus去获取。</p>

<p>之前就被这个坑了很久，我原本想既然如果WASRecv已经立即完成，那么没必要再去通过GetQueuedCompletionStatus等待了，我可以直接快速返回处理结果，减少不必要的协程等待和切换。</p>

<p>然而经过实测发现，实时并非如此，即时我这次立即从recv返回出去不再等待了，等到下次recv如果是pending状态的话，有可能等待到的是上次处理成功的io event，蛋疼。。</p>

<p>为了进一步了解其机制，我翻了下官方文档，里面对lpNumberOfBytesRecvd有如下说明:</p>

<div class="highlighter-rouge"><pre class="highlight"><code>lpNumberOfBytesRecvd

A pointer to the number, in bytes, of data received by this call if the receive operation completes immediately.

Use NULL for this parameter if the lpOverlapped parameter is not NULL to avoid potentially erroneous results. This parameter can be NULL only if the lpOverlapped parameter is not NULL.
</code></pre>
</div>

<p>大概得意思就是告诉我们，如果lpNumberOfBytesRecvd和lpOverlapped同时被设置，可能会有潜在的问题(估计多半就是我遇到的坑吧)，所以看文档这意思，估计是建议我们在传入lpOverlapped的情况下，尽量不要设置lpNumberOfBytesRecvd，传NULL就好。</p>

<p>但是这不是我想要的结果，我还是希望能够快速处理WSARecv立即成功返回的情况，没必要每次都切换协程去等待io event。</p>

<p>一种办法是调用两次WSARecv，一次不传lpOverlapped，直接尝试读取，如果成功立即返回结果，读不到的话，再通过lpOverlapped送入完成队列，去队列化等待事件完成。</p>

<p>另外一种办法就是每次GetQueuedCompletionStatus的时候去忽略之前已经成功处理和返回的时间对象。</p>

<p>不过这两种我试了下，都不是很理想，处理起来比较复杂，效率也不高，那有没有其他更好的办法呢，我翻了下golang源码中对于iocp的处理，终于找到了解决办法。(果然还是golang给力)</p>

<p><a href="https://github.com/golang/go/blob/4b74506da1ccf8c2f57f11991b432a6d5ac86e4f/src/internal/poll/fd_windows.go">poll/fd_windows.go</a>里面有这么字段代码和注释说明:</p>

<div class="language-go highlighter-rouge"><pre class="highlight"><code><span class="c">// This package uses the SetFileCompletionNotificationModes Windows</span><span class="x">
</span><span class="c">// API to skip calling GetQueuedCompletionStatus if an IO operation</span><span class="x">
</span><span class="c">// completes synchronously. There is a known bug where</span><span class="x">
</span><span class="c">// SetFileCompletionNotificationModes crashes on some systems (see</span><span class="x">
</span><span class="c">// https://support.microsoft.com/kb/2568167 for details).</span><span class="x">

</span><span class="k">var</span><span class="x"> </span><span class="n">useSetFileCompletionNotificationModes</span><span class="x"> </span><span class="kt">bool</span><span class="x"> </span><span class="c">// determines is SetFileCompletionNotificationModes is present and safe to use</span><span class="x">
</span></code></pre>
</div>

<p>原来golang是用了SetFileCompletionNotificationModes API去设置iocp端口在每次GetQueuedCompletionStatus等待io事件的时候，去直接内部忽略已经立即成功返回的io事件，也就是说如果WSARecv如果立即成功返回，那么不会再队列化io event了。</p>

<p>这个好呀，正是我想要的东西，而且用起来也很简单，只需要:</p>

<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="n">SetFileCompletionNotificationModes</span><span class="p">(</span><span class="n">socket</span><span class="p">,</span> <span class="n">FILE_SKIP_COMPLETION_PORT_ON_SUCCESS</span><span class="p">);</span>
</code></pre>
</div>


                </div>
                <div class="read-all">
 
                    
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    

                    <a href="/cn/2018/08/16/coroutine-iocp-some-issues/"><i class="fa fa-newspaper-o"></i>阅读全文</a>
                </div>
                <hr />
              </li>
            
              <li>
                <h2>
                  <a class="post-link" href="/cn/2018/08/01/update-v1.6.3/">tbox v1.6.3 更新，新增基于IOCP的协程支持</a>
                </h2>
                <div class="label">
                    <div class="label-card">
                        <i class="fa fa-calendar"></i>2018-08-01
                    </div>
                    <div class="label-card">
                        
                    </div>
                    <div class="label-card">
                        
                    </div>

                    <div class="label-card">
                    


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#tbox" title="Category: tbox" rel="category">tbox</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


                    </div>

                    <div class="label-card">
                    
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <a href="/cn/tag/#tbox" title="Tag: tbox" rel="tag">tbox</a>&nbsp;
    
        <a href="/cn/tag/#稳定性修复" title="Tag: 稳定性修复" rel="tag">稳定性修复</a>&nbsp;
    
        <a href="/cn/tag/#版本更新" title="Tag: 版本更新" rel="tag">版本更新</a>&nbsp;
    
        <a href="/cn/tag/#IOCP" title="Tag: IOCP" rel="tag">IOCP</a>&nbsp;
    
        <a href="/cn/tag/#协程" title="Tag: 协程" rel="tag">协程</a>
    
  

</span>

                    </div>
                </div>
                <div class="excerpt">
                    <p>此版本主要改进windows下协程的支持，修复了很多稳定性问题，并且实现了基于IOCP的协程io处理。</p>

<h3 id="新特性">新特性</h3>

<ul>
  <li><a href="https://github.com/tboox/tbox/issues/24">#24</a>: 针对windows平台下的协程处理，增加IOCP支持</li>
</ul>

<h3 id="改进">改进</h3>

<ul>
  <li>移除docs目录，放置到独立tbox-docs仓库，减少tbox.zip包大小</li>
  <li>支持tinyc编译器</li>
  <li>移除被废弃的模块（asio模块，先用coroutine代替）</li>
  <li>精简优化容器库内存资源使用</li>
  <li>帮助valgrind更好的理解coroutine</li>
</ul>

<h3 id="bugs修复">Bugs修复</h3>

<ul>
  <li>修复windows环境变量的中文编码问题</li>
  <li>修复后台进程退出问题</li>
  <li>修复设置环境变量值为空时的崩溃问题</li>
  <li>修复协程sleep超时覆写数据的bug</li>
  <li>修复windows根路径问题</li>
  <li>修复tls线程存储内存泄露问题</li>
  <li>修复context切换问题</li>
  <li>修复<code class="highlighter-rouge">tb_vsnprintf</code>栈溢出问题</li>
  <li><a href="https://github.com/tboox/tbox/issues/43">#43</a>: 修复读取dns服务器以及stream读取bug</li>
</ul>

<h3 id="源码">源码</h3>

<ul>
  <li><a href="https://github.com/tboox/tbox">Github</a></li>
  <li><a href="https://gitee.com/tboox/tbox">Gitee</a></li>
</ul>


                </div>
                <div class="read-all">
 
                    
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                                
                                <a href="/2018/08/01/update-v1.6.3/"><i class="fa fa-language"></i>Read English</a>
                                
                                
                                
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    

                    <a href="/cn/2018/08/01/update-v1.6.3/"><i class="fa fa-newspaper-o"></i>阅读全文</a>
                </div>
                <hr />
              </li>
            
              <li>
                <h2>
                  <a class="post-link" href="/cn/2018/06/28/xmake-vscode-update-v1.1.0/">xmake-vscode v1.1.0版本发布，断点调试支持</a>
                </h2>
                <div class="label">
                    <div class="label-card">
                        <i class="fa fa-calendar"></i>2018-06-28
                    </div>
                    <div class="label-card">
                        
                    </div>
                    <div class="label-card">
                        
                    </div>

                    <div class="label-card">
                    


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#xmake" title="Category: xmake" rel="category">xmake</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


                    </div>

                    <div class="label-card">
                    
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <a href="/cn/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a>&nbsp;
    
        <a href="/cn/tag/#lua" title="Tag: lua" rel="tag">lua</a>&nbsp;
    
        <a href="/cn/tag/#版本更新" title="Tag: 版本更新" rel="tag">版本更新</a>
    
  

</span>

                    </div>
                </div>
                <div class="excerpt">
                    <p><a href="https://github.com/xmake-io/xmake-vscode">xmake-vscode</a>插件深度集成了<a href="https://github.com/xmake-io/xmake">xmake</a>和vscode，提供方便快速的跨平台c/c++构建。</p>

<p>此版本主要更新内容如下：</p>

<ul>
  <li>利用C/C++插件<a href="https://github.com/Microsoft/vscode-cpptools">vscode-cpptools</a>实现直接加载断点调试xmake编译的程序</li>
  <li>多工程目录工作区支持，可以随意切换和编译多个工程</li>
  <li>改进mingw平台支持</li>
</ul>


                </div>
                <div class="read-all">
 
                    
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                                
                                <a href="/2018/06/28/xmake-vscode-update-v1.1.0/"><i class="fa fa-language"></i>Read English</a>
                                
                                
                                
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    

                    <a href="/cn/2018/06/28/xmake-vscode-update-v1.1.0/"><i class="fa fa-newspaper-o"></i>阅读全文</a>
                </div>
                <hr />
              </li>
            
              <li>
                <h2>
                  <a class="post-link" href="/cn/2018/06/25/xmake-vscode-update-v1.0.8/">xmake-vscode v1.0.8版本发布，在vscode中构建Qt/WDK程序</a>
                </h2>
                <div class="label">
                    <div class="label-card">
                        <i class="fa fa-calendar"></i>2018-06-25
                    </div>
                    <div class="label-card">
                        
                    </div>
                    <div class="label-card">
                        
                    </div>

                    <div class="label-card">
                    


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#xmake" title="Category: xmake" rel="category">xmake</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


                    </div>

                    <div class="label-card">
                    
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <a href="/cn/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a>&nbsp;
    
        <a href="/cn/tag/#lua" title="Tag: lua" rel="tag">lua</a>&nbsp;
    
        <a href="/cn/tag/#版本更新" title="Tag: 版本更新" rel="tag">版本更新</a>
    
  

</span>

                    </div>
                </div>
                <div class="excerpt">
                    <p><a href="https://github.com/xmake-io/xmake-vscode">xmake-vscode</a>插件深度集成了<a href="https://github.com/xmake-io/xmake">xmake</a>和vscode，提供方便快速的跨平台c/c++构建。</p>

<p>此版本主要更新内容如下：</p>

<ul>
  <li>兼容windows下VScode+shell(cmd/bash)</li>
  <li>修复windows下使用，偶尔出现命令在终端下被截断的问题</li>
  <li>更新xmake的自动补全，支持最新版本API</li>
  <li>增加对Qt、WDK环境的支持和配置</li>
  <li>新增附加参数配置，实现交叉编译的配置支持</li>
</ul>

<p>新增的配置内容如下:</p>

<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="s2">"xmake.QtDirectory"</span><span class="err">:</span><span class="w"> </span><span class="p">{</span><span class="w">
    </span><span class="nt">"type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"string"</span><span class="p">,</span><span class="w">
    </span><span class="nt">"default"</span><span class="p">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w">
    </span><span class="nt">"description"</span><span class="p">:</span><span class="w"> </span><span class="s2">"The Qt Directory"</span><span class="w">
</span><span class="p">}</span><span class="err">,</span><span class="w">
</span><span class="s2">"xmake.WDKDirectory"</span><span class="err">:</span><span class="w"> </span><span class="p">{</span><span class="w">
    </span><span class="nt">"type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"string"</span><span class="p">,</span><span class="w">
    </span><span class="nt">"default"</span><span class="p">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w">
    </span><span class="nt">"description"</span><span class="p">:</span><span class="w"> </span><span class="s2">"The WDK Directory"</span><span class="w">
</span><span class="p">}</span><span class="err">,</span><span class="w">
</span><span class="s2">"xmake.additionalConfigArguments"</span><span class="err">:</span><span class="w"> </span><span class="p">{</span><span class="w">
    </span><span class="nt">"type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"string"</span><span class="p">,</span><span class="w">
    </span><span class="nt">"default"</span><span class="p">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w">
    </span><span class="nt">"description"</span><span class="p">:</span><span class="w"> </span><span class="s2">"The Additional Config Arguments, .e.g --cc=gcc --cxflags=\"-DDEBUG\""</span><span class="w">
</span><span class="p">}</span><span class="w">
</span></code></pre>
</div>

                </div>
                <div class="read-all">
 
                    
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                                
                                <a href="/2018/06/25/xmake-vscode-update-v1.0.8/"><i class="fa fa-language"></i>Read English</a>
                                
                                
                                
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    

                    <a href="/cn/2018/06/25/xmake-vscode-update-v1.0.8/"><i class="fa fa-newspaper-o"></i>阅读全文</a>
                </div>
                <hr />
              </li>
            
              <li>
                <h2>
                  <a class="post-link" href="/cn/2018/06/17/update-v2.2.1/">xmake v2.2.1 大版本发布，Qt, WDK和Cuda编译环境支持</a>
                </h2>
                <div class="label">
                    <div class="label-card">
                        <i class="fa fa-calendar"></i>2018-06-17
                    </div>
                    <div class="label-card">
                        
                    </div>
                    <div class="label-card">
                        
                    </div>

                    <div class="label-card">
                    


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#xmake" title="Category: xmake" rel="category">xmake</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


                    </div>

                    <div class="label-card">
                    
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <a href="/cn/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a>&nbsp;
    
        <a href="/cn/tag/#lua" title="Tag: lua" rel="tag">lua</a>&nbsp;
    
        <a href="/cn/tag/#版本更新" title="Tag: 版本更新" rel="tag">版本更新</a>&nbsp;
    
        <a href="/cn/tag/#Qt" title="Tag: Qt" rel="tag">Qt</a>&nbsp;
    
        <a href="/cn/tag/#WDK" title="Tag: WDK" rel="tag">WDK</a>&nbsp;
    
        <a href="/cn/tag/#Cuda" title="Tag: Cuda" rel="tag">Cuda</a>
    
  

</span>

                    </div>
                </div>
                <div class="excerpt">
                    <p>为了使<a href="https://github.com/xmake-io/xmake">xmake</a>更方便灵活地支持其他编译环境，我花了四个多月的时间，对<a href="https://xmake.io/#/zh/manual?id=%E6%9E%84%E5%BB%BA%E8%A7%84%E5%88%99">自定义规则rule</a>，进行了大规模升级。
现在用户可以通过自定义规则，来实现各种编译规则，并且xmake也内置了一些常用的编译规则，可以直接应用到当前工程，去实现对Qt, WDK驱动和Cuda编译环境的支持。</p>

<ul>
  <li><a href="https://github.com/xmake-io/xmake">项目源码</a></li>
  <li><a href="https://xmake.io/#/zh/">官方文档</a></li>
</ul>

<p>相关文章介绍：</p>

<ul>
  <li><a href="http://tboox.org/cn/2018/06/14/support-wdk/">xmake新增对WDK驱动编译环境支持</a></li>
  <li><a href="http://tboox.org/cn/2018/05/30/support-qt/">xmake新增对Qt编译环境支持</a></li>
  <li><a href="http://tboox.org/cn/2018/03/09/support-cuda/">xmake新增对Cuda代码编译支持</a></li>
  <li><a href="http://tboox.org/cn/2017/11/13/custom-rule/">xmake自定义构建规则的使用</a></li>
</ul>

<h3 id="新特性">新特性</h3>

<ul>
  <li><a href="https://github.com/xmake-io/xmake/issues/158">#158</a>: 增加对Cuda编译环境的支持</li>
  <li>添加<code class="highlighter-rouge">set_tools</code>和<code class="highlighter-rouge">add_tools</code>接口为指定target目标设置编译工具链</li>
  <li>添加内建规则：<code class="highlighter-rouge">mode.debug</code>, <code class="highlighter-rouge">mode.release</code>, <code class="highlighter-rouge">mode.profile</code>和<code class="highlighter-rouge">mode.check</code></li>
  <li>添加<code class="highlighter-rouge">is_mode</code>, <code class="highlighter-rouge">is_arch</code> 和<code class="highlighter-rouge">is_plat</code>内置接口到自定义脚本域</li>
  <li>添加color256代码</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/160">#160</a>: 增加对Qt SDK编译环境的跨平台支持，并且增加<code class="highlighter-rouge">qt.console</code>, <code class="highlighter-rouge">qt.application</code>等规则</li>
  <li>添加一些Qt工程模板</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/169">#169</a>: 支持yasm汇编器</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/159">#159</a>: 增加对WDK驱动编译环境支持</li>
</ul>

<h3 id="改进">改进</h3>

<ul>
  <li>添加FAQ到自动生成的xmake.lua文件，方便用户快速上手</li>
  <li>支持Android NDK &gt;= r14的版本</li>
  <li>改进swiftc对warning flags的支持</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/167">#167</a>: 改进自定义规则：<code class="highlighter-rouge">rule()</code></li>
  <li>改进<code class="highlighter-rouge">os.files</code>和<code class="highlighter-rouge">os.dirs</code>接口，加速文件模式匹配</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/171">#171</a>: 改进Qt环境的构建依赖</li>
  <li>在makefile生成插件中实现<code class="highlighter-rouge">make clean</code></li>
</ul>

<h3 id="bugs修复">Bugs修复</h3>

<ul>
  <li>修复无法通过<code class="highlighter-rouge">add_ldflags("xx", "xx", {force = true})</code>强制设置多个flags的问题</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/157">#157</a>: 修复pdb符号输出目录不存在情况下编译失败问题</li>
  <li>修复对macho格式目标strip all符号失效问题</li>
  <li><a href="https://github.com/xmake-io/xmake/issues/168">#168</a>: 修复生成vs201x工程插件，在x64下失败的问题</li>
</ul>


                </div>
                <div class="read-all">
 
                    
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                                
                                <a href="/2018/06/17/update-v2.2.1/"><i class="fa fa-language"></i>Read English</a>
                                
                                
                                
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    
                        
                        
                            
                        
                    
                        
                    

                    <a href="/cn/2018/06/17/update-v2.2.1/"><i class="fa fa-newspaper-o"></i>阅读全文</a>
                </div>
                <hr />
              </li>
            
        </ul>

        <!-- baidu ads -->
        

        <!-- Pagination links -->
        <div class="pagination">
          
            <a href="/cn/index.html" class="previous"><i class="fa fa-angle-double-left"></i></a>
            <a href="/cn/page12" class="previous"><i class="fa fa-angle-left"></i></a>
          
          <span class="page_number ">13/40</span>
          
            <a href="/cn/page14" class="next"><i class="fa fa-angle-right"></i></a>
            <a href="/cn/page40" class="next"><i class="fa fa-angle-double-right"></i></a>
          
        </div>
    </div>
    <!-- <button class="anchor"><i class="fa fa-anchor"></i></button> -->
    <div class="right">
        <div class="wrap">

            <!-- codefund ads -->
            

            <div class="side">
                <div>
                    <i class="fa fa-pencil-square-o" aria-hidden="true"></i>
                    最近文章
                </div>
                <ul class="content-ul" recent="">
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/12/17/xmake-update-v2.6.2/">xmake v2.6.2 发布，新增 Linux 内核驱动模块构建支持</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/12/03/xmake-update-v2.6.1/">xmake v2.6.1 发布，使用 Lua5.4 运行时，Rust 和 C++ 混合编译支持</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/10/30/xmake-update-v2.5.9/">xmake v2.5.9 发布，改进 C++20 模块，并支持 Nim, Keil MDK 和 Unity Build</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/10/08/xmake-update-v2.5.8/">xmake v2.5.8 发布，新增 Pascal/Swig 程序和 Lua53 运行时支持</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/08/29/xmake-update-v2.5.7/">xmake v2.5.7 发布，包依赖锁定和 Vala/Metal 语言编译支持</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/07/26/xmake-update-v2.5.6/">xmake v2.5.6 发布，改进预编译二进制镜像包兼容性</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/06/30/xmake-update-v2.5.5/">xmake v2.5.5 发布，支持下载集成二进制镜像包</a></li>
                            
                        
                    
                    
                    
                        
                    
                    
                    
                        
                            <li><a href="/cn/2021/05/15/xmake-update-v2.5.4/">xmake v2.5.4 发布，支持 apt/portage 包管理器，改进 xrepo shell 环境</a></li>
                            
                        
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                </ul>
            </div>

            <!-- baidu ads -->
            

            <!-- xmake courses -->
            <br />
            <div class="side">
                <div>
                    <i class="fa fa-external-link"></i>
                    xmake 入门课程
                </div>
                <a href="https://xmake.io/#/zh-cn/about/course" target="_blank">
                <img src="/static/img/xmake-course.png" alt="course" width="256" height="193" />
                </a>
            </div> 

            <!-- wechat public -->
            <br />
            <div class="side">
                <div>
                    <i class="fa fa-external-link"></i>
                    微信公众号
                </div>
                <img src="/static/img/weixin_public.jpg" alt="wechat" width="256" height="284" />
            </div> 

            <!-- 其他div框放到这里 -->
            <br />
            <div class="side">
                <div>
                    <i class="fa fa-tags"></i>
                    标记
                </div>
                <div class="tags-cloud">
                    
                    
                    
                    

                    

                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#文档" style="font-size: 9pt; color: #999;">文档</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#插件" style="font-size: 9.5pt; color: #888;">插件</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#tboox" style="font-size: 9.5pt; color: #999;">tboox</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#站点" style="font-size: 9pt; color: #999;">站点</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#算法" style="font-size: 9pt; color: #999;">算法</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#容器" style="font-size: 9pt; color: #999;">容器</a>
                    
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#内存池" style="font-size: 9pt; color: #999;">内存池</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#跨平台" style="font-size: 9pt; color: #999;">跨平台</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#异常捕获" style="font-size: 9pt; color: #999;">异常捕获</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#windows" style="font-size: 9.5pt; color: #999;">windows</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#编译" style="font-size: 9.5pt; color: #999;">编译</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#配置" style="font-size: 9pt; color: #999;">配置</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#stream" style="font-size: 9pt; color: #999;">stream</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#流" style="font-size: 9pt; color: #999;">流</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#静态库" style="font-size: 9pt; color: #999;">静态库</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#版本更新" style="font-size: 10pt; color: #888;">版本更新</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#类库" style="font-size: 9pt; color: #999;">类库</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#自定义脚本" style="font-size: 9pt; color: #999;">自定义脚本</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#安装" style="font-size: 9pt; color: #999;">安装</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#打包" style="font-size: 9pt; color: #999;">打包</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#android" style="font-size: 9.5pt; color: #999;">android</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#doxygen" style="font-size: 9pt; color: #999;">doxygen</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#宏脚本" style="font-size: 9pt; color: #999;">宏脚本</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#xmake.lua" style="font-size: 9pt; color: #999;">xmake.lua</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#project" style="font-size: 9pt; color: #999;">project</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#交叉编译" style="font-size: 9pt; color: #999;">交叉编译</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#build" style="font-size: 9pt; color: #999;">build</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#调试" style="font-size: 9pt; color: #999;">调试</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#运行" style="font-size: 9pt; color: #999;">运行</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#协程" style="font-size: 9.5pt; color: #999;">协程</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#调试符号" style="font-size: 9pt; color: #999;">调试符号</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#自动检测" style="font-size: 9pt; color: #999;">自动检测</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#工程描述" style="font-size: 9pt; color: #999;">工程描述</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#符号文件" style="font-size: 9pt; color: #999;">符号文件</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#ios" style="font-size: 9pt; color: #999;">ios</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#逆向分析" style="font-size: 9pt; color: #999;">逆向分析</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#手写数字识别" style="font-size: 9pt; color: #999;">手写数字识别</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#神经网络" style="font-size: 9pt; color: #999;">神经网络</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#人工智能" style="font-size: 9pt; color: #999;">人工智能</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#图像处理" style="font-size: 9pt; color: #999;">图像处理</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#定时器" style="font-size: 9pt; color: #999;">定时器</a>
                    
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#时间轮算法" style="font-size: 9pt; color: #999;">时间轮算法</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#context" style="font-size: 9pt; color: #999;">context</a>
                    
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#boost" style="font-size: 9pt; color: #999;">boost</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#服务器" style="font-size: 9pt; color: #999;">服务器</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#版本" style="font-size: 9pt; color: #999;">版本</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#包查找" style="font-size: 9pt; color: #999;">包查找</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#编译器特性检测" style="font-size: 9pt; color: #999;">编译器特性检测</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#预编译头文件" style="font-size: 9pt; color: #999;">预编译头文件</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#扩展模块" style="font-size: 9pt; color: #999;">扩展模块</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#稳定性修复" style="font-size: 9pt; color: #999;">稳定性修复</a>
                    
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#Qt" style="font-size: 9pt; color: #999;">Qt</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#IOCP" style="font-size: 9pt; color: #999;">IOCP</a>
                    
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#远程包管理" style="font-size: 9pt; color: #999;">远程包管理</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#包依赖" style="font-size: 9pt; color: #999;">包依赖</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#自动构建" style="font-size: 9pt; color: #999;">自动构建</a>
                    
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#子工程" style="font-size: 9pt; color: #999;">子工程</a>
                    
                    
                    
                     
                     
                     
                      
                      
                      
                      
                      
                      <a href="/cn/tag/#子模块" style="font-size: 9pt; color: #999;">子模块</a>
                    
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                    
                     
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                     
                     
                     
                    
                    
                </div>
            </div>

            

            <!-- baidu ads -->
            

        </div>
    </div>

    <!-- baidu ads -->
    
</div>



    <footer class="site-footer">
    <div class="wrapper">
        <p class="description">
             Copyright (c) 2016-2020 tboox.org 
        </p>
        <p class="contact">
            
            <a href="https://github.com/waruqi" title="GitHub"><i class="fa fa-github" aria-hidden="true"></i></a> 
             
            
            <a href="mailto:waruqi@gmail.com" title="email"><i class="fa fa-envelope-o" aria-hidden="true"></i></a> 
            
            
            <a href="https://twitter.com/waruqi" title="Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a> 
            
            <a href="/feed.xml" title="feed"><i class="fa fa-feed" aria-hidden="true"></i></a> 
        </p>
        <p class="power">
            <span>
                Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://github.com/Gaohaoyang">HyG</a> & <a href="https://pages.github.com/">Github Pages</a>.
            </span>
        </p>
    </div>
</footer>

    <div class="back-to-top">
    <a href="#top" class="scroll">
        <i class="fa fa-arrow-up" aria-hidden="true"></i>
    </a>
</div>

    <script src=" /js/main.js " charset="utf-8"></script>
    <script src=" /js/scroll.min.js " charset="utf-8"></script>
  </body>

</html>
